package example.fileoperation.p03;

/**
 * @author 17976
 */

import java.io.*;
public class Main {
    public static void main(String[] args) {
        try {
            File file = new File("C:\\test.txt");
            if (file.delete()) {
                System.out.println("文件已被删除！");
            } else {
                System.out.println("文件删除失败！");
            }
        } catch (Exception e) {
            e.printStackTrace();
         }
    }
}

